/*
 * 版权信息：北京汉方三陆零科技有限公司</br>
 * Copyright ©2014-2015. All rights reserved.  京ICP备15000045号
 */
package com.lin.decorator.hospital;



/****************************************************************************
 * com.lin.decorator.beverage UserTest.java Created on 2016年1月7日
 * @Author: linfenliang
 * @Description:
 * @Version: 1.0
 ***************************************************************************/
public class HospitalTest {

	public static void main(String[] args) {
		Hospital h = new TopPublicHospital(new DongzhimenHospital());
		System.out.println(h.getName()+h.getDescription());
		Hospital hh = new PersonalHospital(new GuoyitangHospital());
		System.out.println(hh.getName()+hh.getDescription());
		
		System.out.println("一只只能跑的家养的(吃粮食的)鸡");
		Bird bird = new FamilyBirdDecorator(new RunBirdDecorator(new Chicken()));
		bird.eat();
		bird.song();
		bird.sleep();
		System.out.println(bird.getName());
	}
}
